package com.bj.zspace.docker.study.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

/**
 * @author qing
 */
@RestController
public class OrderController {

    @Value("${server.port}")
    private String port;

    @GetMapping(value = "/order/docker")
    public String helloDocker(){
        return "hello docker" + "\t" + port + "\t" + UUID.randomUUID().toString();
    }
    @GetMapping(value = "/order/index")
    public String index(){
        return "服务器端口:" + "\t" + port + "\t" + UUID.randomUUID().toString();
    }

}
